<%-- 
    Document   : view-mould-ssm-graph
    Created on : 27 Apr 11, 14:38:59
    Author     : Bayu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
       <jsp:include page="includes/script.html"/>
       <title>Rejection Mould Graph</title>
    </head>

    <body>
        <center>
         <form method="get">

           From : <input type="text" value="${start}" name="start" readonly> <img src="images/calendar.gif" onclick="displayDatePicker('start', false, 'ymd', '-');" />&nbsp;
             To : <input type="text" value="${end}" name="end" readonly> <img src="images/calendar.gif" onclick="displayDatePicker('end', false, 'ymd', '-');" />&nbsp;
               <input  type="submit" name="submit" value="View" >

        </form>
        </center>
        <br>

        <center> <a href="mould-ssm-graph.png"><img src="mould-ssm-graph.png" width="800" border="0"></a>

            <br>
            <br>
        <table bgcolor="#000000" cellspacing="1" cellpadding="1" width="1000">
            <tr bgcolor="#ffffff">
                <td>
                    Date
                </td>

                    <c:forEach items="${data}" var="data">
                        <td align="center">
                            <fmt:formatDate pattern="dd" value="${data.date}" />
                        </td>
                    </c:forEach>

            </tr>
            <tr bgcolor="#ffffff">
                <td>% Day</td>

                   <c:forEach items="${data}" var="data">
                        <td align="center">
                            ${data.harian}
                        </td>
                    </c:forEach>


            </tr>
            <tr bgcolor="#ffffff">
                <td>% Cumm</td>
                <c:forEach items="${data}" var="data">
                        <td align="center">
                            ${data.kum}
                        </td>
                    </c:forEach>
            </tr>
        </table>

        </center>

    </body>
</html>

